package com.gimi.cloud.jimi.commonService.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.gimi.cloud.jimi.commonService.service.CoreApiConfigService;
import com.gimi.cloud.jimi.dao.dao.userInfo.ApiConfigDao;
import com.gimi.cloud.jimi.entity.core.ApiConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * api配置文件Service
 * @author wbj
 * @version 2.0
 * @since 2016年12月15日 17时36分16秒
 */
@Service(value = "coreApiConfigService")
@Transactional
public class CoreApiConfigServiceImpl implements CoreApiConfigService {
    
    @Autowired
    private ApiConfigDao apiConfigDao;
 
	@Override
	public List<ApiConfig> getValidateApi() {
		List<ApiConfig> datas = apiConfigDao.getValidateApi();
		if(null == datas){
			datas = new ArrayList<ApiConfig>();
		}
		return datas;
	}
}
